package com.testmanager.testmananger.quantitative.dto;

import com.testmanager.testmananger.quantitative.constants.IteraSearchStatus;
import com.testmanager.testmananger.quantitative.constants.IterationStatus;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class IterationSearchDto {
    private int size;
    private int pagenum;
    //private IterationStatus status;

    private int status;
    private String name;

    public IteraSearchStatus getStatus(){
        return IteraSearchStatus.getValueOf(status);
    }

    @Override
    public String toString() {
        return "IterationSearchDto{" +
                "size=" + size +
                ", pagenum=" + pagenum +
                ", status=" + status +
                ", name='" + name + '\'' +
                '}';
    }
}
